package cn.com.nes.site.service.crm.customer;

import cn.com.nes.mybatis.agent.crm.entity.CustomerHouseRelationship;
import cn.com.nes.site.entity.vo.crm.CustomerHouseRelationshipVO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 客户房屋关系服务
 */
public interface CustomerHouseRelationshipService extends IService<CustomerHouseRelationship> {

    /**
     * 保存客户 - 房屋关系
     * @param relationshipVO
     * @return
     */
    CustomerHouseRelationship saveRelationship(CustomerHouseRelationshipVO relationshipVO);


    /**
     * 删除客户房屋关系
     */
    void delRelationship(Long houseId) throws Exception;


    CustomerHouseRelationship getCustomerHouseRelationship(String customerUuid, Long houseId);


    CustomerHouseRelationship getCustomerHouseId(String customerUuid);

}
